A Syntactic Approach to Structure GenerativityFranz - Josef Grosch Abteilung SoftwaretechnologieTechnische
نویسنده
چکیده
Advanced module systems like Standard ML's 13, 17] support structure generativity. Structure generativity denotes the mechanism that parameterized modules (functors) generate a "new" module instance (structure) for every application to a suitable argument. This operational behaviour is essentially a side eeect. Since interfaces in general depend on module instances, module instances are computationally characterised as "stamps" for the purpose of interface-checking. This paper presents a typed module calculus that makes instances of modules syntactically apparent in expressions and interfaces. The module calculus has a simple rewriting semantics without side eeects. Interface-checking is based on a type system with dependent functions, strong sums and additionally a non-standard variant of weak sums. A module system derived from the module calculus forms a separate layer above some typed core language. As a demonstrating example, we sketch M/SML, a module language on top of core SML.
منابع مشابه
A Syntactic Approach to Structure GenerativityFranz -
Advanced module systems like Standard ML's 13, 17] support structure generativity. Structure generativity denotes the mechanism that parameterized modules (functors) generate a "new" module instance (structure) for every application to a suitable argument. This operational behaviour is essentially a side eeect. Since interfaces in general depend on module instances, module instances are computa...
متن کاملNo Type Stamps and No Structure Stamps | a Referentially - Transparent Higher
A language for programming-in-the-large should support architectural descriptions of an entire product line. The evaluation of programs-in-the-large should generate the architecture of individual products and should link implementations-in-the-small to form an executable product. The Standard ML (SML) module language 20] could serve this task, but it is not referentially transparent. Furthermor...
متن کاملA syntactic-semantic analysis of \"منصوب به نزع خافض\"based on the Holy Quran
One of important issues in the field of implication and aggression is "منصوب به نزع خافض". It is an idiom related to مفعول به "”. By referring to its definition, a syntactic-semantic analysis will be done in this paper. It tries to indicate what is the relationship between word and meaning and to what extent Arabic syntax focu...
متن کاملEfficient Evaluation of Well-Formed Attribute Grammars And Beyond
This paper is concerned with the evaluation of well-formed attribute grammars as support for semantic analysis. This is the largest class of attribute grammars, which does not impose any restrictions. A data structure and an algorithm are described which are efficient, both in terms of space and time. Attribute grammars are extended from the decoration of trees to the decoration of graphs and t...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2008